package com.jumi.microservice.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品和物料的spu对应关系
 *
 * @author Administrator
 */
@TableName("commodity_material_spu_relationship")
@ApiModel(value = "商品和物料的sku对应关系", description = "商品和物料的sku对应关系表")
public class CommodityMaterialSpuRelationshipDO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品spuID")
    private Long spuId;

    @ApiModelProperty(value = "物料的商品spuid")
    private Long materialSpuId;

    @ApiModelProperty(value = "物料的商品spu编码")
    private String materialSpuCode;

    @ApiModelProperty(value = "物料的商品名称")
    private String materialSpuName;

    @ApiModelProperty("单位ID")
    private Long unitId;
    @ApiModelProperty("单位名称")
    private String unitName;

    @ApiModelProperty(value = "添加时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Long getMaterialSpuId() {
        return materialSpuId;
    }

    public void setMaterialSpuId(Long materialSpuId) {
        this.materialSpuId = materialSpuId;
    }

    public String getMaterialSpuCode() {
        return materialSpuCode;
    }

    public void setMaterialSpuCode(String materialSpuCode) {
        this.materialSpuCode = materialSpuCode;
    }

    public String getMaterialSpuName() {
        return materialSpuName;
    }

    public void setMaterialSpuName(String materialSpuName) {
        this.materialSpuName = materialSpuName;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
